package pers.csw.lookBook.common.constant;
import lombok.Getter;

/**
 * @author csw
 * 错误代码
 */
public record ErrorCode(String code, String message) {
    public static final ErrorCode SUCCESS = new ErrorCode("200","操作成功");
    public static final ErrorCode SYSTEM_ERROR = new ErrorCode("500","系统错误");
    public static final ErrorCode USER_NAME_EXIST = new ErrorCode("111", "用户名已存在");
    public static final ErrorCode USER_ACCOUNT_NOT_EXIST = new ErrorCode("201", "用户账号不存在");
    public static final ErrorCode USER_PASSWORD_ERROR = new ErrorCode("210", "用户名或密码错误");
}
